import request from '@/utils/request'

export function loginByName(loginName, password) {
	return request.post('/adminLogin/login', {
		loginName,
		password,
	})
}

export function sendMsg(data) {
	return request.get('/sms/sendsms', {
		params: {
			...data
		}
	})
}

export function logout() {
	return request.get('/adminLogin/adminByToken')
}

export function getUserInfo() {
	return request.get('/adminLogin/adminByToken')
}

